package my.diplom.dao;

import my.diplom.entity.Event;
import my.diplom.entity.Message;
import my.diplom.entity.User;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gb
 * Date: 13.07.2009
 * Time: 23:47:36
 * To change this template use File | Settings | File Templates.
 */
public interface IMessageDAO {

    void create(Message message);
	void update(Message message);
	Message getById(Long messageId);
	List<Message> getAll();
	void delete(Message message);
    List<Message> getReceivedByUser(User user);
    List<Message> getSentByUser(User user);

}
